package mockInter01.no1.no2;

class Solution {
    public int[] corpFlightBookings(int[][] bookings, int n) {

        int[] r = new int[n];

        for (int[] book : bookings) {
            for (int i = book[0]; i <= book[1] ; i++) {
                r[i] += book[2];
            }
        }
        return r;
    }
}
